{extend name="base" /}

{block name="body"}
{php}use constant\Ota as OtaType;{/php}

<section class="content-header">
  <h1>
    微信支付参数配置
    <small>系统 配置</small>
  </h1>
  <ol class="breadcrumb">
    <li><a href="{:url('admin/index/index')}"><i class="fa fa-dashboard"></i> Home</a></li>
    <li class="active">微信支付参数配置</li>
  </ol>
</section>

<section class="content">
  <!-- 筛选框 -->
  <div class="box box-info">
    <div class="box-header with-border">
    <h3 class="box-title"><a href="https://pay.weixin.qq.com/" target="_blank">微信支付平台</a></h3>
    </div>

    <form class="form-horizontal" method="post">
      <div class="box-body">
      <input type="hidden" name="id" value="{$id}">

        <div class="form-group">
          <label for="inputEmail3" class="col-sm-2 control-label">MCH_ID(商户ID)</label>
          <div class="col-sm-10">
            <input type="text" name="wechat_mch_id" value="{$info.wechat_mch_id}" class="form-control" placeholder="请输入10位商户MCH_ID（必填）">
          </div>
          <span class="col-md-2"></span>
          <span class="col-md-8">注意：商户ID必需与微信接口配置公众号APPID对应，否则无法使用支付功能！ </span>
        </div>

        <div class="form-group">
          <label for="input3" class="col-sm-2 control-label">PartnerKey(商户密钥)</label>
          <div class="col-sm-10">
            <input type="text" name="wechat_partnerkey" value="{$info.wechat_partnerkey}" class="form-control" placeholder="请输32位商户支付密钥（必填）">
          </div>
        </div>

<!--         <div class="form-group">
          <label for="input3" class="col-sm-4 control-label">Cert(双向证书) - application_key.pem 文件上传</label>
          <div class="col-sm-6 control-label" id="upload_file_name" style="text-align: left;word-break: break-all;"></div>
              <div id="picker" class="btn btn-info" >选择文件</div>
              <button class="btn btn-success" id="start_upload" >开始上传</button>
              <button class="btn btn-danger" id="retry_upload" style="display:none;">重试上传</button>
        </div>

        <div class="form-group">
          <label for="input3" class="col-sm-4 control-label">Cert(双向证书) - application_cert.pem 文件上传</label>
          <div class="col-sm-6 control-label" id="upload_file_name" style="text-align: left;word-break: break-all;"></div>
              <div id="picker" class="btn btn-info" >选择文件</div>
              <button class="btn btn-success" id="start_upload" >开始上传</button>
              <button class="btn btn-danger" id="retry_upload" style="display:none;">重试上传</button>
              <hr/>
              <span class="col-md-7">企业打款、企业红包、订单退款等操作需要使用双向证书，可在<a href="https://pay.weixin.qq.com/" target="_blank">微信商户平台</a>下载证书！ </span>
        </div> -->

      </div>

      <div class="box-footer">
        <div class="row">
          <div class="col-md-1 col-md-offset-10">
            <button type="button" class="btn btn-info submit">修改</button>
          </div>
          <div class="">
            <button type="button" data-url="{:url('admin/SystemConfig/payTest')}" class="btn btn-danger test-btn">支付测试</button>
            <input type="hidden" class="order-sn" check-url="{:url('admin/SystemConfig/checkWxpayFinish')}" value="">
          </div>
        </div>
      </div>

    </form>
  </div>




</section>

{/block}

{block name="script"}
<script type="text/javascript" src="__AJS__/system_config/index.js"></script>
{/block}